
<form id="zhuxiaobeizhu-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="tab-labels">
        <div class="xian"></div>
        注销备注
    </div>
    <div class="hang">
        <div class="form-group" style="width: 100%!important;">
            <label class="control-label col-xs-12 col-sm-2">{:__('注销备注')}:</label>
            <div class="col-xs-12 col-sm-10">
                <textarea class="form-control"  name="row[zhuxiao_beizhu]" type="text" rows="5" value="">{$row.zhuxiao_beizhu}</textarea>
            </div>
        </div>
    </div>
    <div class="hang">
        {if $row.status neq 6}
        <div class="form-group " style="margin-top: 50px;padding-bottom: 50px;"  id="zhuxiaobaocun">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 " style="text-align: center;margin: auto;">
                <button  class="tab-label2 btn btn-primary btn-embossed" style="width:100px;background: #FF5722 !important" type="button" onclick="return zhuxiao_save()" >提交审核</button>
            </div>
        </div>
        {/if}
    </div>
</form>
<script>
    //录入保存
    function zhuxiao_save(){
        layer.confirm('确认提交审核吗？', {
            btn: ['确定', '取消'], //按钮
            shade: false //不显示遮罩
        }, function(index,layero) {
            $(layero).find('.layui-layer-btn0').css('pointer-events','none');// 将确认按钮鼠标事件设置为无效
            $(layero).find('.layui-layer-btn0').html('保存中...');// 将确认按钮鼠标事件设置为无效
            var formData = $("#zhuxiaobeizhu-form").serialize();
            $.ajax({
                type: "POST",
                dataType: "json",
                url: "{:url('buchang/chakan/zhuxiaoadd')}",
                data: formData,
                success: function (res) {
                    if (res.code == 1) {
                        $('#zhuxiaobaocun').hide()
                        layer.msg(res.msg,{time:1000, icon: 1});
                        parent.$("#table").bootstrapTable('refresh', {});
                    } else {
                        layer.msg(res.msg,{time:1000, icon: 2});
                    }
                },
                error : function() {
                    layer.alert("error");
                }
            });
        })
    }
</script>